﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<UnfriendlyFire.Models.Officer>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Edit</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <%: Html.HiddenFor(model => model.Id) %>
    <%: Html.HiddenFor(model => model.Email) %>
    <%: Html.HiddenFor(model => model.Timestamp) %>
    <%: Html.HiddenFor(model => model.ExperiencePoints) %>
    <%: Html.HiddenFor(model => model.RankId) %>
    <table>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.FirstName) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.FirstName) %>
                <%: Html.ValidationMessageFor(model => model.FirstName) %>
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.LastName) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.LastName) %>
                <%: Html.ValidationMessageFor(model => model.LastName) %>
            </td>
        </tr>
        <%--        
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.ExperiencePoints) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.ExperiencePoints) %>
                <%: Html.ValidationMessageFor(model => model.ExperiencePoints) %>
            </td>
        </tr>
        --%>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.Photo) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Photo) %>
                <%: Html.ValidationMessageFor(model => model.Photo) %>
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="Submit" />
            </td>
        </tr>
    </table>
    <% } %>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
